/**
 * Created by chen on 18/5/31.
 */
/**
 * Created by chen on 18/5/31.
 */
var mongoose = require('../config/mongoose.js');
var db = mongoose();
var CartSchema = require('../schemas/CartSchema');
//创建model，这个地方的ch_user对应mongodb数据库中ch_users的conllection。
//mongoose会自动改成复数，如模型名：xx―>xxes, kitten―>kittens, money还是money
var Cart = db.model('Cart',CartSchema);
module.exports = Cart;